<?php

class PageManager{
    
    public function goToPage($pageName){
        $allowedPageNames = array(
            'home'
        );
        
        if (!in_array($pageName, $allowedPageNames) || empty($pageName)) {
            $pageName = 'home';
        }
        include "view/pages/$pageName.php";
    }
}
?>
